<%@page import="com.xxb.dao.CommentDao"%>
<%@page import="com.xxb.entity.Comment"%>
<%@page import="com.xxb.entity.Product"%>
<%@page import="com.xxb.dao.ProductDao"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String id = request.getParameter("id");
	
	Product p = new ProductDao().findByid(Integer.parseInt(id));
	
	List<Comment> commentlist = new CommentDao().findBypid(Integer.parseInt(id));
	request.setAttribute("commentlist",commentlist);
	request.setAttribute("p",p);
	request.getRequestDispatcher("x1.jsp").forward(request,response);
%>